<?php

namespace app\admin\model;

class Specification extends \think\Model
{
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'integer';

    // 定义时间戳字段名
    protected $createTime = 'created_at';
    protected $updateTime = 'updated_at';
    protected $deleteTime = false;

    public function product()
    {
        return $this->belongsTo('Product', 'product_id', 'id');
    }
}
